<!doctype html>
<html>
<head>
	<title><?php echo ( isset($this->title) && !empty($this->title) ) ? strip_tags(htmlspecialchars_decode($this->title)) : Yii::app()->name;?></title>
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
	<link rel="icon" href="/favicon.ico" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta charset="UTF-8">
	<meta name="description" content="<?php echo !empty($this->meta->meta_description) ? strip_tags(htmlspecialchars_decode($this->meta->meta_description)):''?>">
	<meta name="keywords" content="<?php echo !empty($this->meta->meta_keywords) ? strip_tags(htmlspecialchars_decode($this->meta->meta_keywords)) : ''?>">
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getBaseUrl()?>/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getBaseUrl()?>/css/bootstrap.custom.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->getBaseUrl()?>/css/stylesheet.css" />
	<link href='//fonts.googleapis.com/css?family=Open+Sans:400,700,800,600' rel='stylesheet' type='text/css'>
	<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>

<!--  Top right Navigation Start -->
	<div class="navbar navbar-inverse navbar-fixed-top top-nav" role="navigation">
      <div class="container wrapper">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'testimonials'))?>">Testimonials</a></li>
           <!-- <li><a href="<?php echo $this->createUrl('site/careers')?>">Careers</a></li>-->
            <li><a href="<?php echo $this->createUrl('site/page',array('slug'=>'news'))?>">News</a></li>
            <li><a href="<?php echo $this->createUrl('site/page',array('slug'=>'resources'))?>">Resources</a></li>
            <li><a href="http://www.lakeb2b.com/blog" target="_blank">Blog</a></li>
            <li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'clients'))?>">Clients</a></li>
            <li><a href="<?php echo $this->createUrl('site/contact')?>" class="btn btn-danger">Contact Us</a></li>
          </ul>
      </div>
    </div>
<!--  Top right Navigation End -->

<!--  Logo bar start -->
 
	<div class="container-fluid logo-bar wrapper">
	  <div class="logo col-md-7 col-sm-6 col-xs-12 row"><a href="<?php echo Yii::app()->getBaseUrl()?>" alt="LakeB2B-The World's Leader in Data-Research-Innovation" ><img src="<?php echo Yii::app()->getBaseUrl()?>/images/logo.png"  /></a></div>
	  
	  <div class="col-md-5 col-sm-6 col-xs-12 social pull-right">
          <div class="contact col-md-6 col-sm-5 col-xs-6 no-padding text-right">
          <i class="fa icon-mobile"></i>&nbsp;&nbsp;<span>(800) 710-5516</span></div>
          <div class="icons col-md-6 col-sm-7 col-xs-6 pull-right no-padding text-right">
	          <a href="https://twitter.com/lakeb2b" target="_blank"><i class="fa fa-twitter"></i></a>
	          <a href="https://www.facebook.com/pages/Lake-B2B/138369793039331" target="_blank"><i class="fa fa-facebook"></i></a>
	          <a href="http://www.pinterest.com/lakeb2b/" target="_blank"><i class="fa fa-pinterest"></i></a>
	          <a href="https://plus.google.com/u/0/b/117479463964841821393/117479463964841821393/posts" target="_blank"><i class="fa fa-google-plus"></i></a>
	          <a href="https://www.linkedin.com/company/b2bdatapartners" target="_blank"><i class="fa fa-linkedin"></i></a>
	      </div>
	  </div>
	</div>

	<div class="clearfix"></div>

<!--  Logo bar End -->
	<hr class="no-margin" />
	
	<!--  Navigation bar below logo -->
	<div class="container-fluid">
	<div class="navbar navbar-default main-nav" role="navigation">
	  <div class="container-fluid wrapper">
	    <!-- Brand and toggle get grouped for better mobile display -->
	    <div class="navbar-header">
	      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
	        <span class="sr-only">Toggle navigation</span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	      </button>
	      <a class="navbar-brand" href="<?php echo Yii::app()->getBaseUrl()?>"><i class="fa fa-home"></i></a>
	    </div>
	
	    <!-- Collect the nav links, forms, and other content for toggling -->
	    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	     
	     <?php 
	     	$menuitems = Menuitems::model()->findAllByAttributes(array('menu_position'=>'1', 'parent'=>'0'), array('order'=>'sequence', 'limit'=>'6'));
	     	
	     	if( isset($menuitems) && !empty($menuitems) ):
	     ?>
	     
	     <ul class="nav navbar-nav">
	     
	     	<?php foreach($menuitems as $menuitem):?>
	      	<?php 
	      		$cms = $menuitem->page;
	      		$dropdownClass = $extraVars = $caret = $subCaret = '';
	      		if ( isset($cms) && !empty($cms)):	
	      		
	      		$submenus = Menuitems::model()->findAllByAttributes(array('menu_position'=>'1', 'parent'=>$menuitem->id), array('order'=>'sequence'));
	      		if( isset($submenus) && !empty($submenus) ):
	      		  $dropdownClass = "dropdown";
	      		  $extraVars = 'class="dropdown-toggle"';
	      		  $caret = '<span class="caret hidden-xs"></span>';
	      		  $subCaret = '<span class="visible-xs hidden-sm hidden-md- hidden-lg show_submenu"><i class="fa fa-align-justify"></i></span>';
	      		endif;
	      		$url = $this->createUrl('site/page', array('slug'=>$cms->slug));
	      	?>
	        	<li class="<?php echo $dropdownClass;?>"><a <?php echo $extraVars;?> href="<?php echo $url;?>"><?php echo ucfirst($cms->title)?> <?php echo $caret;?><?php echo $subCaret;?></a>
	        	
	        	<?php if( isset($submenus) && !empty($submenus) ):?>
	        			
	        			<ul class="dropdown-menu" role="menu">
	        				<?php foreach($submenus as $submenu):?>
	        					<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>$submenu->page->slug))?>"><?php echo ucfirst($submenu->page->title)?></a></li>
	        				<?php endforeach;?>
	        			</ul>
	        	<?php endif;?>
	        	</li>
	        	
	        <?php endif;?>
	   	<?php endforeach; ?>
	   	
	   	</ul>
	   	
	   	<?php endif; ?>   
	      
	    </div><!-- /.navbar-collapse -->
	  </div><!-- /.container-fluid -->
	</div>
	</div>
<!--  Navigation bar below logo end -->
	
	<div class="clearfix"></div>
	
	<?php echo $content; ?>
	
	<!--  footer secition start -->
	
		<footer class="col-md-12 services pb-50 pt-20">
			<div class="wrapper">
				<div class="col-md-3 text-left text-upper">
					<h5 class="headings bottom-border">Database Marketing Services</h5><div class="clearfix"></div>
					<ul>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'multichannel-prospect-lists'))?>">Multichannel Prospect Lists</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'email-appending-services'))?>">Email Appending</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'email-verification-and-validation-services'))?>">Email Verification  & validation</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'contact-finder'))?>">Contact Finder</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'360-degree-profiling-services'))?>">360 Degree Profiling</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'data-provisioning-services'))?>">Data Provisioning</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'event-marketing-services'))?>">Event Marketing Services</a></li>
					</ul>
				</div>
				<div class="col-md-4 text-left text-upper">
					<h5 class="headings bottom-border">Marketing Solutions</h5><div class="clearfix"></div>
					<ul>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'market-research-services'))?>">Market Research</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'email-marketing-services'))?>">Email Marketing</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'html-design-creative-services'))?>">HTML Design/Creative Services</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'search-engine-optimization-services'))?>">Search Engine Optimization</a></li>
						<li><a href="<?php echo $this->createUrl('site/page', array('slug'=>'web-development-services'))?>">Web Development</a></li>
					</ul>
				</div>
				<div class="col-md-5 text-right pt-50">
					<form role="form" action="<?php echo $this->createUrl('site/search')?>" method="get" id="search-form">
						<div class="input-group search-box">
						  	<input type="text" name="keyword" class="search form-control" placeholder="Search..." />
						  	<span class="input-group-addon" id="keyword-btn"><span class="glyphicon glyphicon-search"></span></span>
						</div>
					</form>		
					<div class="clearfix"></div>
					
					<div class="icons mt-20 col-md-12 pull-right">
			           <a href="https://twitter.com/lakeb2b" target="_blank"><i class="fa fa-twitter"></i></a>
			          <a href="https://www.facebook.com/pages/Lake-B2B/138369793039331" target="_blank"><i class="fa fa-facebook"></i></a>
			          <a href="http://www.pinterest.com/lakeb2b/" target="_blank"><i class="fa fa-pinterest"></i></a>
			          <a href="https://plus.google.com/u/0/b/117479463964841821393/117479463964841821393/posts" target="_blank"><i class="fa fa-google-plus"></i></a>
			          <a href="https://www.linkedin.com/company/b2bdatapartners" target="_blank"><i class="fa fa-linkedin"></i></a>
			      </div>
				</div>
				<div class="clearfix"></div>
				<hr />
				<div class="clearfix"></div>
				
				<div class="col-md-6 text-left row bottom-link">
					<div class="col-md-3 col-sm-3 col-xs-4"><a href="<?php echo $this->createUrl('site/page',array('slug'=>'privacy-policy')) ?>">Privacy Policy</a></div>
					<div class="col-md-3 col-sm-3 col-xs-4"><a href="<?php echo $this->createUrl('site/contact')?>">Contact Us</a></div>
					<div class="col-md-3 col-sm-3 col-xs-4"><a href="<?php echo $this->createUrl('site/page',array('slug'=>'about-us')) ?>">About Us</a></div>
					
					<div class="clearfix"></div>
					<p>&nbsp;&nbsp; &copy; 2014 Lake B2B. All Rights Reserved.</p>
				</div>
				
				<div class="col-md-6 text-right">
					<button type="button" class="btn btn-danger text-upper" id="chat-invoke">
					  <i class="fa fa-envelope"></i> &nbsp;&nbsp;Contact Us Now &nbsp;&nbsp;<i class="glyphicon glyphicon-chevron-up"></i>
					</button>
	        <div class="col-md-8 col-sm-6 col-xs-10 chat-widget">
	            <div class="panel panel-primary">
	                <div class="panel-heading text-left">
	                    <span class="fa fa-phone"></span> Contact Us Now 
	                    <div class="btn-group pull-right">
	                        <button type="button" class="btn btn-default btn-xs" id="chat-sleep">
	                            <span class="glyphicon glyphicon-chevron-down"></span>
	                        </button>
	                    </div>
	                </div>
	                 <?php 
	                 	$contact = new Contacts();
						$form=$this->beginWidget('CActiveForm', array(
							'action'=>Yii::app()->getBaseUrl().'/site/contact/',
							'id'=>'contact-form',
						    'enableAjaxValidation'=>false,
						    'enableClientValidation'=>true,
							'clientOptions'=> array(
								'errorCssClass'=>'has-error', 
								'validateOnSubmit' => true,
								'afterValidate'=>'js:send'
							),
						)); 
					 ?>
		                <div class="panel-body">
		                    	<div class="col-md-12 mt-20">
		                    		<?php echo $form->textField($contact,'name', array('class'=>'form-control', 'placeholder'=>'Full Name*')); ?>
		                    		<?php echo $form->error($contact,'name'); ?>
		                    	</div>
		                    	
		                    	<div class="col-md-12 mt-20">
		                    		<?php echo $form->textField($contact,'email', array('class'=>'form-control', 'placeholder'=>'Email Address*')); ?>
		                    		<?php echo $form->error($contact,'email'); ?>
		                    	</div>
		                    	
		                    	<div class="col-md-12 mt-20">
		                    		<?php echo $form->textField($contact,'mobile', array('class'=>'form-control', 'placeholder'=>'Phone*')); ?>
		                    		<?php echo $form->error($contact,'mobile'); ?>
		                    	</div>
		                    	
		                    	<div class="col-md-12 mt-20">
		                    		<?php echo $form->textarea($contact,'message', array('class'=>'form-control', 'placeholder'=>'Comments')); ?>
		                    	</div>
		                    
		                </div>
		                <div class="panel-footer col-md-12">
							<div class="col-md-4 text-left row">	                
		                    	<?php echo CHtml::submitButton('submit', array('class'=>'btn btn-danger', 'id'=>'btn-chat')); ?>
		                    </div>
			                <div class="col-md-8 show-message text-center"></div>
			                
			                <div class="clearfix"></div>
			                
			                 <div class="col-md-12 row text-left"><small><a href="<?php echo $this->createUrl('site/page', array('slug'=>'privacy-policy'))?>">Your privacy is important to us</a></small></div>
			            </div>
	                <?php $this->endWidget();?>
	            </div>
	        </div>
					
					<button type="button" title="Back To Top" id="back-to-top" class="btn btn-danger text-upper">
					  <i class="glyphicon glyphicon-chevron-up"></i>
					</button>
				</div>
			</div>
		</footer>
	<!--  footer section end -->
	
	<?php Yii::app()->clientScript->registerCoreScript('jquery');?>
	<script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
	<script src="<?php echo Yii::app()->getBaseUrl()?>/js/bootstrap.min.js" ></script>
	<script src="<?php echo Yii::app()->getBaseUrl()?>/js/jquery.scrollme.min.js" ></script>
	<script src="//code.jquery.com/jquery-migrate-1.2.1.js"></script>
	<script src="<?php echo Yii::app()->getBaseUrl()?>/js/jquery.spritely-0.6.js" ></script>
	<script src="<?php echo Yii::app()->getBaseUrl()?>/js/TweenMax.min.js"></script>
	<script src="<?php echo Yii::app()->getBaseUrl()?>/js/jquery.scrollmagic.min.js"></script>
	
	<script>
		$(document).ready(function(){
			// main image slider caraousel 
			$('#carousel-example-generic').carousel({
				interval: 5000 //changes the speed
			});

			// image thumbnail carousel 
			$('#myCarousel,myCarousel-phone').carousel({
				interval: 5000
			});

			// cloud animation 
			$('.far-clouds').pan({fps: 30, speed: 0.7, dir: 'left', depth: 30});
            $('.near-clouds').pan({fps: 30, speed: 1, dir: 'left', depth: 70});

            // footer button click abd back to top 
			$('button#back-to-top').on('click', function(){
				$('html,body').animate({scrollTop: 0}, 2000);
			});

			// chat window invking 
			$('button#chat-invoke').on('click', function(){
				$('.chat-widget').addClass('show-top');
				$('.chat-widget .panel-body').animate({'height':280},300);		
			});

			// chat window sleep 
			$('button#chat-sleep').on('click', function(){
				$('.chat-widget .panel-body').animate({'height':0},300);
				setTimeout(function(){ $('.chat-widget').removeClass('show-top')},250);
			});

			$('#header_nav').data('size','big');
			$('a').each(function(){ $(this).attr('title', $(this).text())});

			var controller;
			// init the controller
			controller = new ScrollMagic({
				globalSceneOptions: {
					triggerHook: "onEnter"
				}
			});
			
			var sceneOptions = {duration: 500, offset: 100};
			var elements = $(".services img");
			
			new ScrollScene(sceneOptions)
			.addTo(controller)
			.triggerHook("onEnter")
			.triggerElement(elements)
			.setTween(TweenMax.from(elements, 1, {scale: 0, ease: Back.easeOut}));


			// add slash in end or before it doesn't have
			$('a').not('.download').each(function(){
				var str = $(this).attr('href');
				if (str.indexOf('/') != 0 && str.indexOf('http://') != 0 && str.indexOf('https://') != 0 && str.indexOf('//') != 0 && str.indexOf('mailto:') != 0 ){
					$(this).attr('href','/'+str);
				}
				var lastChar = str.substr(str.length - 1);
				var checkPdf = str.substr(str.length-3);
				if (str.indexOf('mailto:') != 0 && lastChar != '/' && checkPdf != 'pdf' && str.indexOf('#') != 0){
					$(this).attr('href',str+'/');
				}
			});

			// data cards remove two columns from update date showing table
			<?php 
				$updateDates = DatacardsDates::model()->find();
			?>
			$("th:contains('\"New to System\" Announcement')").closest('thead.cf').next().find('tr:eq(0) td:eq(3)').text("<?php echo date('m/d/Y',strtotime($updateDates->last_updated_date))?>");
			$("th:contains('\"New to System\" Announcement')").closest('thead.cf').next().find('tr:eq(0) td:eq(4)').text("<?php echo date('m/d/Y',strtotime($updateDates->next_updated_date))?>");
			
			$("th:contains('New To System')").closest('thead.cf').next().find('tr:eq(0) td:eq(1)').remove();
			$("th:contains('\"New to System\" Announcement')").closest('thead.cf').next().find('tr:eq(0) td:eq(1)').remove();
			$("th:contains('New To System')").remove();
			$("th:contains('\"New to System\" Announcement')").remove();
			$("th:contains('Last Update')").text("Last Updated Date");
			$("th:contains('SPECIAL INSTRUCTIONS')").closest('table').remove();
		});
			
		function send(form, data, hasError) {
			
			if (!hasError){
		        // No errors! Do your post and stuff
		        // FYI, this will NOT set $_POST['ajax']... 
		        if (form.attr('id')=='contact-form'){
		        	$('.show-message').html("<img src='<?php echo Yii::app()->getBaseUrl()?>/images/loading.gif' alt='loading...' />");
		        }

		        $.post(form.attr('action'), form.serialize(), function(res){
		            // Do stuff with your response data!
		            if (res.status){
			        	form[0].reset();
			        	if (form.attr('id')=='contact-form'){
		            		//$('.show-message').text("Thank you for contacting us!");
			        		window.location = "<?php echo $this->createUrl('site/contact')?>";
			        	}
		            }
		        }, 'json');
		    }
		    // Always return false so that Yii will never do a traditional form submit
		    return false;
		}

		// show submenu on click rather than hover in mobile devices
		$('span.show_submenu').on('click', function(e){
			e.preventDefault();
			$this = $(this).parent().next();
			
			if ($this.hasClass('show-xs')){
				$this.removeClass('show-xs');
			} else {
				$('ul.show-xs').removeClass('show-xs');
				$this.addClass('show-xs');
			}
			
		});
		$('#search-form').submit(function(){
			if ($.trim($('input.search').val())  != ''){
				return true;
			} else {
				$('input.search').parent().addClass('has-error');
				return false;
			}
		});

		$('#keyword-btn').click(function(){
			if ($.trim($('input.search').val())  != ''){
				$('#search-form').submit();
			} else {
				$('input.search').parent().addClass('has-error');
				return false;
			}
		});

		
		$('.block').mouseenter(function(e) {
	        $(this).children('a').children('img').animate({ height: '246', left: '-25', top: '-25', width: '290'}, 100);
	        $(this).children('a').children('span').fadeIn(50);
	    }).mouseleave(function(e) {
	        $(this).children('a').children('img').animate({ height: '196', left: '0', top: '0', width: '240'}, 100);
	        $(this).children('a').children('span').fadeOut(50);
	    });


		$('.reblock').mouseenter(function(e) {
	        $(this).children('a').children('img').animate({ height: '273', left: '-25', top: '-25', width: '217'}, 100);
	        $(this).children('a').children('span').fadeIn(50);
	    }).mouseleave(function(e) {
	        $(this).children('a').children('img').animate({ height: '223', left: '0', top: '0', width: '167'}, 100);
	        $(this).children('a').children('span').fadeOut(50);
	    });


		$('#myCarousel .item > div').mouseenter(function(e) {
	        $(this).children('a').children('img').animate({ height: '242', left: '-25', top: '-25', width: '286'}, 100);
	        $(this).children('a').children('span').fadeIn(50);
	    }).mouseleave(function(e) {
	        $(this).children('a').children('img').animate({ height: '192', left: '0', top: '0', width: '236'}, 100);
	        $(this).children('a').children('span').fadeOut(50);
	    });
	    
		
	</script>
	
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
	 
	  ga('create', 'UA-38029041-1', 'lakeb2b.com');
	  ga('require', 'displayfeatures');
	  ga('send', 'pageview');

	  // Google analytic code for PDFs
	  $('a[href$=".pdf"]').attr('onClick',"ga('send', 'event', 'Downloads', 'PDF', this.href);");

</script>

<!-- LeadFormix -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://vlog.leadformix.com/" : "https://vlog.leadformix.com/");
<!--
bf_action_name = '';
bf_idsite = 8139;
bf_url = pkBaseURL+'bf/bf.php';
(function() {
    var lfh = document.createElement('script'); lfh.type = 'text/javascript'; lfh.async = true;
    lfh.src = pkBaseURL+'bf/lfx.js';
    var s = document.getElementsByTagName('head')[0]; s.appendChild(lfh);
  })();
//-->
</script>
<noscript><p>Marketing Automation Platform <img src="https://vlog.leadformix.com/bf/bf.php" style="border:0" alt="Marketing Automation Tool"/></p>
</noscript>
<!-- /LeadFormix -->

</body>
</html>